package com.daiqee.dao.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.daiqee.pojo.User;

public interface UserMapper extends BaseMapper<User>{

	/**
	 * 修改用户账号和密码
	 * @Time 2018-1-20
	 * @author RichardTang
	 * @param username
	 * 					需要被修改的账户用户名
	 * @param oldpassword
	 * 					需要被修改账户的密码
	 * @param newpassword
	 * 					需要修改的新密码
	 * @return 返回受影响的数据数量,0:修改失败,1:修改成功
	 */
	Integer updatePwdByAdmin(@Param(value = "username")String username,
			@Param(value = "oldpassword")String oldpassword,@Param(value = "newpassword")String newpassword);
}
